<?php $this->load->view('header'); ?>
<!-- TinyMCE -->
<script type="text/javascript" src="<?php echo base_url();?>scripts/tiny_mce/tiny_mce.js"></script>

<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		//theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		//theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		maxwidth: "100%",
        height: "400",
	});
</script>
<!-- /TinyMCE -->
 <div id="title_background">
	<div class="wrapper"><!-- 900px wrapper -->
		<h1>Galeri Video</h1>
		<!--<span class="title_description">Daftar video yang telah diunggah.</span>-->
	</div> <!-- 900px wrapper -->
</div>
</div>
<div class="cleaner"></div>
<div id="position_navi"><a href="<?php echo base_url();?>">Beranda</a> / Video</div>
<div id="content">
	<article>
		<h1>Tambah Video</h1>
		<form class="contact_form" method="POST" enctype="multipart/form-data">
			<span>Judul:*</span>
			<input type="text" name="judul" required="required" autocomplete="off" value="<?php if(isset($video[0]['judul'])){ echo $video[0]['judul']; } ?>"/>
			<span>Deskripsi:</span>
			<textarea name="deskripsi" id="elm1"><?php if(isset($video[0]['deskripsi'])){ echo $video[0]['deskripsi']; } ?></textarea>
			<span>Video (Youtube URL):*</span>
			<input type="text" name="url" required="required" style="width:500px" value="<?php if(isset($video[0]['url'])){ echo $video[0]['url']; } ?>"/>
			<span>Privasi:</span>
				<select class="privasi" name="status">
					<option selected="selected" value="public">Public</option>
					<option value="private">Private</option
				</select>
			<input type="submit" value="Unggah" name="video_submit" />
			<input type="hidden" name="video_old" value="<?php if(isset($video[0]['nama_file'])){echo $video[0]['nama_file'];}?>" />
		</form>
	</article>        

<div class="cleaner"></div>
</div>
<div class="cleaner"></div>
<?php $this->load->view('footer', $right_sidebar); ?>